<?php


namespace fack;


use servers\Rest;
use servers\SmsServer;

class Sms
{
    const RLYSEND = 'rlysend';
    const DXBSEND = 'dxbsend';
    public static function sendSms($type,$phone)
    {
        switch ($type){
            case self::RLYSEND : $type = new Rest();break;
            case self::DXBSEND : $type = new SmsServer();break;
            default : return null;
        }

        return  $type->sendSms($phone);
    }
}